#include "DropStep.h"

DropStep::DropStep(): droppableInterface(0), droppableObject(0)
{
}

DropStep::DropStep(const DropStep& rhs): droppableInterface(rhs.droppableInterface), droppableObject(rhs.droppableObject)
{
}

DropStep::~DropStep()
{
}

void DropStep::Execute()
{
	if (droppableInterface && droppableObject)
	{
		droppableInterface->Drop();
	}
}

void DropStep::SetObject(GameObject* object, Droppable* droppable)
{
	droppableInterface = droppable;
	droppableObject = object;
}


DropStep* DropStep::Clone() const
{
	return new DropStep(*this);
}
